package com.example.deploysinggle.test1.common.context;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO   上下文 ip path
 * @date 2024/12/15 19:17
 */
public class QiuContext {

    private static ThreadLocal<String> oriIp=new ThreadLocal<>();
    private static ThreadLocal<String> reqPath=new ThreadLocal<>();

    public QiuContext() {
    }
    public  static String getOriIp(){
        return oriIp.get();
    }

    public static void setOriIp(String oriIpValue) {
        oriIp.set(oriIpValue);
    }
    public  static  void removeOriIp(){
        oriIp.remove();
    }

    public static String getReqPath() {
    return reqPath.get();
    }

    public static void setReqPath(String reqPathValue) {
        reqPath.set(reqPathValue);
    }
    public  static  void removeReqPath(){
        reqPath.remove();
    }
}
